package com.example.shortmessage.contract;


import com.example.shortmessage.base.BaseAbstractPresenter;
import com.example.shortmessage.base.IBaseView;
import com.example.shortmessage.data.entity.User;

/**
 * @author 27638
 */
public interface LoginContract {
    interface View<P extends Presenter> extends IBaseView<P> {

    }

    abstract class Presenter<V extends View> extends BaseAbstractPresenter<V> {
        public abstract String getUsername();

        public abstract String getPassword();

        /**
         * 登陆验证
         * @param username 账户
         * @param password 密码
         */
        public abstract void login(String username, String password);
    }

    interface Model {
        User query(String username);
    }
}
